import {Pipe, PipeTransform} from '@angular/core';
import {ButtonAuthorityService} from '../service/button-authority.service';

/**
 * 描述：处理获取字典描述，有缓存
 * 作者：xc
 * 时间：2020-08-13 10:33
 */
@Pipe({
  name: 'BAuthority'
})
export class ButtonAuthorityPipe implements PipeTransform {

  constructor(private buttonAuthorityService: ButtonAuthorityService) {
  }

  transform(value: any): any {
    return this.buttonAuthorityService.verifyButtonAuthority(value);
  }
}
